﻿using Common.Data.Extensions;
using Customer.Core.Configuration;
using Customer.Model.Model;

namespace Customer.Core.Data.DBConfig
{
    public class AlertOverduConfiguration: DBConfig<AlertOverdue>
    {
        public AlertOverduConfiguration()
            : base(SystemConfiguration.Schema, SystemConfiguration.NamingType, SystemConfiguration.TABLE_PREFIX)
        {
            HasKey(k => new { k.Cif, k.ContractNo });

            //relationship
            //HasRequired(t => t.Branch).WithMany(c => c.CustomerRegions).HasForeignKey(t => new { t.BranchId }).WillCascadeOnDelete(false);
        }
    }
}
